package com.yzl.builder;

/**
 * @program: design-pattern
 * @description:
 * @author: YaoZhiLi
 * @create: 2021-08-08 01:16
 */
public class HighComputerBuilder implements Builder{
    private Computer computer = new Computer();

    @Override
    public void buildCpu() {
        computer.setCpu("高配Cpu");
    }

    @Override
    public void buildMainBoard() {
        computer.setMainBoard("高配主板");
    }

    @Override
    public void buildDisk() {
        computer.setDisk("高配磁盘");
    }

    @Override
    public void buildPower() {
        computer.setPower("高配电源");
    }

    @Override
    public void buildMemory() {
        computer.setMemory("高配内存");
    }

    @Override
    public Computer createComputer() {
        return computer;
    }
}